#include <sys/time.h>
#include "slave.h"
void rtcc_(unsigned long *tcount)
{
    unsigned long rpcc;
    asm volatile("rcsr  %0,4":"=r"(rpcc));
    *tcount =rpcc;
}
